package com.kang.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Type {
    private int id;

    @NotEmpty(message = "类别名称未填写")
    private String name;   //类别名字
}
